package net.wanho.shop.service;

import com.github.pagehelper.PageInfo;
import net.wanho.shop.po.Member;
import net.wanho.shop.vo.PageVo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author 猛虎王
 * @since 2024-12-24
 */
public interface MemberService {
    PageInfo findPage(int pageNum, int pageSize, Member member);

    Member findById(Serializable id);

    void add(Member member);

    void modify(Member member);

    void removeById(Serializable id);

    // 导出
    Workbook export(int pageNum, int pageSize, Member member);

    // 导入
    void importExcel(MultipartFile multipartFile);

    PageVo findPageByMember(int pageNum, int pageSize, Member member);

    void modifyById(Member member, Integer id);

    void removeByIdList(ArrayList<Integer> ids);
}
